import type { FormSchema } from '@/components/core/schema-form/';

export const schemas: FormSchema[] = [
  {
    field: 'word',
    component: 'Input',
    label: '①',
    rules: [{ required: true, type: 'string', message: '请输入消防机构简称' }],
    componentProps: () => {
      return {
        placeholder: '请输入消防机构简称',
      };
    },
  },
  {
    field: 'year',
    component: 'Input',
    label: '②',
    rules: [{ required: true, message: '请输入记录表字' }],
    componentProps: () => {
      return {
        placeholder: '请输入记录表字',
      };
    },
  },
  {
    field: 'number',
    component: 'Input',
    label: '③',
    rules: [{ required: true, message: '请输入记录表号' }],
    componentProps: () => {
      return {
        placeholder: '请输入记录表号',
      };
    },
  },
  {
    field: 'name',
    component: 'Input',
    label: '④',
    rules: [{ required: true, message: '请输入姓名' }],
    componentProps: () => {
      return {
        placeholder: '请输入姓名',
      };
    },
  },
  {
    field: 'time',
    component: 'DatePicker',
    label: '⑤',
    rules: [{ required: true, message: '请选择期限' }],
    componentProps: () => {
      return {
        placeholder: '请选择期限',
        style: {
          width: '100%',
        },
        showTime: {
          format: 'HH:mm',
        },
        valueFormat: 'YYYY-MM-DD HH:mm',
        format: 'YYYY-MM-DD HH:mm',
      };
    },
  },
  {
    field: 'location',
    component: 'Input',
    label: '⑥',
    rules: [{ required: true, message: '请输入机构名称' }],
    componentProps: () => {
      return {
        placeholder: '请输入机构名称',
      };
    },
  },
  {
    field: 'info1',
    component: 'InputTextArea',
    label: '⑦',
    componentProps: () => {
      return {
        placeholder: '请输入需要的资料',
      };
    },
  },
  {
    field: 'info2',
    component: 'InputTextArea',
    label: '',
    componentProps: () => {
      return {
        placeholder: '请输入需要的资料',
      };
    },
  },
  {
    field: 'info3',
    component: 'InputTextArea',
    label: '',
    componentProps: () => {
      return {
        placeholder: '请输入需要的资料',
      };
    },
  },
];
